<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>16-图片转为Base64</title>
		<!-- 导入jQuery库 -->
		<script type="text/javascript" src="../../lib/jquery/jquery-1.11.3.min.js" ></script>
		<!-- 引入微信二维码JS -->
		<script type="text/javascript" src="http://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js" ></script>
		
	</head>
	<body>
		<center>
			<div id="login_container"></div>
		</center>	
			
	</body>
<script>
//https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1419316505&token=&lang=zh_CN
// appid 和 redirect_uri 一一对应关系
var obj = new WxLogin({
	self_redirect:true,
	id:"login_container", 
//	appid: "wxbdc5610cc59c1631", // 一号店的 appid 需要自己申请
	appid: "wx827225356b689e24", // 京东的
	scope: "snsapi_login", 
	redirect_uri: encodeURIComponent("https://qq.jd.com/new/wx/callback.action"),
//	redirect_uri: encodeURIComponent("https://passport.yhd.com/wechat/callback.do"),
	state: "123AFQFVDSGG"
});
</script>
</html>
